package com.gaoyuzhe.feign;

import com.gaoyuzhe.entities.Payment;
import com.gaoyuzhe.to.ReturnValue;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author gaoyuzhe
 */
@FeignClient(name = "CLOUD-PROVIDER-PAYMENT")
public interface PaymentFeignService {
    @GetMapping("/payment/get/{id}")
    ReturnValue<Payment> getPayementById(@PathVariable("id") Long id);
    @GetMapping("/payment/timeout")
    ReturnValue<String> timeout();
}
